<%@ page import="com.dao.TeacherDao" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.List" %><%
    TeacherDao dao  = new TeacherDao();

    List<Map> list = dao.query();
    System.out.println(list);
    request.setAttribute("list",list);//jsp之间传递值
    request.getRequestDispatcher("index.jsp").forward(request,response);//请求转发的方式跳页

%>